<include file="Public:header" />

    <h3 class="title"><em>充值记录</em></h3>
	<div class="listbox">
        <form name="mform" method="post" action="{:U('index')}">
		<div class="search">
			<span>ID/订单号/会员账号：</span><input name="id" type="text" id="id" class="ipt" size="30" value="{$pageInfo['id']}" />
            <select name="status" id="status" class="sel">
                <option value="">所有状态</option> 
                <option value="1" style="color: #f30;">付款成功</option>
                <option value="2" style="color: #080;">未付款</option>
                <option value="3">交易异常</option>
			</select>
            <script type="text/javascript">
			$(function(){
				$("#status").val("{$pageInfo['status']}");	
			});
			</script>
			<input type="submit" class="btn" value="搜索" />
        </div>
        </form>
        
        <form name="mform" method="post" action="{:U('doAction')}">
        <div class="toolbar" style="height:23px;">
			&nbsp;
		</div>
        
        <table width="100%" border="0" cellspacing="1" cellpadding="0">
        <tr>
            <th>ID</th>
            <th>订单号</th>
            <th>充值金额</th>
            <th>充值人</th>
            <th>充值时间</th>
            <th>状态</th>
        </tr>
        <volist name="list" id="vo">
        	<tr>
            	<td align="center">{$vo['id']}</td>
            	<td align="center">{$vo['recharge_no']}</td>
            	<td align="center">{$vo['amount']} 元</td>
            	<td align="center">{$vo['username']}</td>
            	<td align="center">{:date('Y-m-d H:i:s', $vo['add_time'])}</td>
            	<td class="manage"  align="center">
                	<switch name="vo['status']">
                    	<case value="1"><span style="color:green;">充值成功</span></case>
                    	<case value="2"><span style="color:red;">未付款</span></case>
                    	<case value="3"><span>交易异常</span></case>
                    </switch>
             	</td>
            </tr>
        </volist>
        </table>
                       
    	
		</form>
        <include file="Public:page" />
	</div>
<include file="Public:footer" />